import service from '@/utils/request'

export const createServiceCenter = (data) => {
  return service({ url: '/user/createServiceCenter', method: 'post', data })
}

export const updateServiceCenter = (data) => {
  return service({ url: '/user/updateServiceCenter', method: 'put', data })
}

export const toggleServiceCenterEnable = (data) => {
  return service({ url: '/user/toggleServiceCenterEnable', method: 'put', data })
}

export const deleteServiceCenter = (data) => {
  return service({ url: '/user/deleteServiceCenter', method: 'delete', data })
}

export const getCenterDetail = (data) => {
  return service({ url: '/user/getCenterDetail', method: 'post', data })
}

export const getCenterList = (data) => {
  return service({ url: '/user/getCenterList', method: 'post', data })
}

